package com.summer.dao;

import com.summer.pojo.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    List<Book> findAllBook ();
    Book findBookById(@Param("bookid") int id);
    int updateBookById(@Param("bookid") int id,@Param("count") int count);
    int adminupdateBookById(Book book);
    int addBook(Book book);
    int deleteBookById(int bookid);
}
